
#include <stdlib.h>
#include <string.h>

#include "log.h"

#include "download.h"

struct evcpe_download *evcpe_download_new(void)
{
	struct evcpe_download *method;

	evcpe_debug(__func__, "constructing evcpe_download");
	
	if (!(method = calloc(1, sizeof(struct evcpe_download)))) {
		evcpe_error(__func__, "failed to calloc evcpe_download");
		return NULL;
	}
	memset(method, 0, sizeof(struct evcpe_download));
	return method;
}

void evcpe_download_free(struct evcpe_download *method)
{
	if (!method) return;
	evcpe_debug(__func__, "destructing evcpe_download");
	free(method);
}

struct evcpe_download_response *evcpe_download_response_new(void)
{
	struct evcpe_download_response *method;

	evcpe_debug(__func__, "constructing evcpe_download_response");
	
	if (!(method = calloc(1, sizeof(struct evcpe_download_response)))) {
		evcpe_error(__func__, "failed to calloc evcpe_download_response");
		return NULL;
	}
	memset(method, 0, sizeof(struct evcpe_download_response));
	return method;
}

void evcpe_download_response_free(struct evcpe_download_response *method)
{
	if (!method) return;
	evcpe_debug(__func__, "destructing evcpe_download_response");
	free(method);
}


